
package com.work.jaxb;

import java.io.IOException;

import javax.xml.bind.*;

import com.work.jaxb.menu.XmlRootMenu;


public class GenerateXSD {

	public static void main(String[] args) throws JAXBException, IOException
	{
		try {
			JAXBContext context = JAXBContext.newInstance(XmlRootMenu.class);
			context.generateSchema(new MySchemaOutputResolver("menu.xsd"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
